package com.desksoft.ecommerce.entity.mall.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class VipcheckstatusExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public VipcheckstatusExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRecordidIsNull() {
            addCriterion("RecordID is null");
            return (Criteria) this;
        }

        public Criteria andRecordidIsNotNull() {
            addCriterion("RecordID is not null");
            return (Criteria) this;
        }

        public Criteria andRecordidEqualTo(String value) {
            addCriterion("RecordID =", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotEqualTo(String value) {
            addCriterion("RecordID <>", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidGreaterThan(String value) {
            addCriterion("RecordID >", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidGreaterThanOrEqualTo(String value) {
            addCriterion("RecordID >=", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidLessThan(String value) {
            addCriterion("RecordID <", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidLessThanOrEqualTo(String value) {
            addCriterion("RecordID <=", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidLike(String value) {
            addCriterion("RecordID like", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotLike(String value) {
            addCriterion("RecordID not like", value, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidIn(List<String> values) {
            addCriterion("RecordID in", values, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotIn(List<String> values) {
            addCriterion("RecordID not in", values, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidBetween(String value1, String value2) {
            addCriterion("RecordID between", value1, value2, "recordid");
            return (Criteria) this;
        }

        public Criteria andRecordidNotBetween(String value1, String value2) {
            addCriterion("RecordID not between", value1, value2, "recordid");
            return (Criteria) this;
        }

        public Criteria andSiteidIsNull() {
            addCriterion("SiteID is null");
            return (Criteria) this;
        }

        public Criteria andSiteidIsNotNull() {
            addCriterion("SiteID is not null");
            return (Criteria) this;
        }

        public Criteria andSiteidEqualTo(Integer value) {
            addCriterion("SiteID =", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotEqualTo(Integer value) {
            addCriterion("SiteID <>", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidGreaterThan(Integer value) {
            addCriterion("SiteID >", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidGreaterThanOrEqualTo(Integer value) {
            addCriterion("SiteID >=", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidLessThan(Integer value) {
            addCriterion("SiteID <", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidLessThanOrEqualTo(Integer value) {
            addCriterion("SiteID <=", value, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidIn(List<Integer> values) {
            addCriterion("SiteID in", values, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotIn(List<Integer> values) {
            addCriterion("SiteID not in", values, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidBetween(Integer value1, Integer value2) {
            addCriterion("SiteID between", value1, value2, "siteid");
            return (Criteria) this;
        }

        public Criteria andSiteidNotBetween(Integer value1, Integer value2) {
            addCriterion("SiteID not between", value1, value2, "siteid");
            return (Criteria) this;
        }

        public Criteria andGmtdateIsNull() {
            addCriterion("GmtDate is null");
            return (Criteria) this;
        }

        public Criteria andGmtdateIsNotNull() {
            addCriterion("GmtDate is not null");
            return (Criteria) this;
        }

        public Criteria andGmtdateEqualTo(Date value) {
            addCriterion("GmtDate =", value, "gmtdate");
            return (Criteria) this;
        }

        public Criteria andGmtdateNotEqualTo(Date value) {
            addCriterion("GmtDate <>", value, "gmtdate");
            return (Criteria) this;
        }

        public Criteria andGmtdateGreaterThan(Date value) {
            addCriterion("GmtDate >", value, "gmtdate");
            return (Criteria) this;
        }

        public Criteria andGmtdateGreaterThanOrEqualTo(Date value) {
            addCriterion("GmtDate >=", value, "gmtdate");
            return (Criteria) this;
        }

        public Criteria andGmtdateLessThan(Date value) {
            addCriterion("GmtDate <", value, "gmtdate");
            return (Criteria) this;
        }

        public Criteria andGmtdateLessThanOrEqualTo(Date value) {
            addCriterion("GmtDate <=", value, "gmtdate");
            return (Criteria) this;
        }

        public Criteria andGmtdateIn(List<Date> values) {
            addCriterion("GmtDate in", values, "gmtdate");
            return (Criteria) this;
        }

        public Criteria andGmtdateNotIn(List<Date> values) {
            addCriterion("GmtDate not in", values, "gmtdate");
            return (Criteria) this;
        }

        public Criteria andGmtdateBetween(Date value1, Date value2) {
            addCriterion("GmtDate between", value1, value2, "gmtdate");
            return (Criteria) this;
        }

        public Criteria andGmtdateNotBetween(Date value1, Date value2) {
            addCriterion("GmtDate not between", value1, value2, "gmtdate");
            return (Criteria) this;
        }

        public Criteria andPasttimeIsNull() {
            addCriterion("PastTime is null");
            return (Criteria) this;
        }

        public Criteria andPasttimeIsNotNull() {
            addCriterion("PastTime is not null");
            return (Criteria) this;
        }

        public Criteria andPasttimeEqualTo(Date value) {
            addCriterion("PastTime =", value, "pasttime");
            return (Criteria) this;
        }

        public Criteria andPasttimeNotEqualTo(Date value) {
            addCriterion("PastTime <>", value, "pasttime");
            return (Criteria) this;
        }

        public Criteria andPasttimeGreaterThan(Date value) {
            addCriterion("PastTime >", value, "pasttime");
            return (Criteria) this;
        }

        public Criteria andPasttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("PastTime >=", value, "pasttime");
            return (Criteria) this;
        }

        public Criteria andPasttimeLessThan(Date value) {
            addCriterion("PastTime <", value, "pasttime");
            return (Criteria) this;
        }

        public Criteria andPasttimeLessThanOrEqualTo(Date value) {
            addCriterion("PastTime <=", value, "pasttime");
            return (Criteria) this;
        }

        public Criteria andPasttimeIn(List<Date> values) {
            addCriterion("PastTime in", values, "pasttime");
            return (Criteria) this;
        }

        public Criteria andPasttimeNotIn(List<Date> values) {
            addCriterion("PastTime not in", values, "pasttime");
            return (Criteria) this;
        }

        public Criteria andPasttimeBetween(Date value1, Date value2) {
            addCriterion("PastTime between", value1, value2, "pasttime");
            return (Criteria) this;
        }

        public Criteria andPasttimeNotBetween(Date value1, Date value2) {
            addCriterion("PastTime not between", value1, value2, "pasttime");
            return (Criteria) this;
        }

        public Criteria andMobilecodeIsNull() {
            addCriterion("MobileCode is null");
            return (Criteria) this;
        }

        public Criteria andMobilecodeIsNotNull() {
            addCriterion("MobileCode is not null");
            return (Criteria) this;
        }

        public Criteria andMobilecodeEqualTo(String value) {
            addCriterion("MobileCode =", value, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeNotEqualTo(String value) {
            addCriterion("MobileCode <>", value, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeGreaterThan(String value) {
            addCriterion("MobileCode >", value, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeGreaterThanOrEqualTo(String value) {
            addCriterion("MobileCode >=", value, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeLessThan(String value) {
            addCriterion("MobileCode <", value, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeLessThanOrEqualTo(String value) {
            addCriterion("MobileCode <=", value, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeLike(String value) {
            addCriterion("MobileCode like", value, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeNotLike(String value) {
            addCriterion("MobileCode not like", value, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeIn(List<String> values) {
            addCriterion("MobileCode in", values, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeNotIn(List<String> values) {
            addCriterion("MobileCode not in", values, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeBetween(String value1, String value2) {
            addCriterion("MobileCode between", value1, value2, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andMobilecodeNotBetween(String value1, String value2) {
            addCriterion("MobileCode not between", value1, value2, "mobilecode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeIsNull() {
            addCriterion("EmailCode is null");
            return (Criteria) this;
        }

        public Criteria andEmailcodeIsNotNull() {
            addCriterion("EmailCode is not null");
            return (Criteria) this;
        }

        public Criteria andEmailcodeEqualTo(String value) {
            addCriterion("EmailCode =", value, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeNotEqualTo(String value) {
            addCriterion("EmailCode <>", value, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeGreaterThan(String value) {
            addCriterion("EmailCode >", value, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeGreaterThanOrEqualTo(String value) {
            addCriterion("EmailCode >=", value, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeLessThan(String value) {
            addCriterion("EmailCode <", value, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeLessThanOrEqualTo(String value) {
            addCriterion("EmailCode <=", value, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeLike(String value) {
            addCriterion("EmailCode like", value, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeNotLike(String value) {
            addCriterion("EmailCode not like", value, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeIn(List<String> values) {
            addCriterion("EmailCode in", values, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeNotIn(List<String> values) {
            addCriterion("EmailCode not in", values, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeBetween(String value1, String value2) {
            addCriterion("EmailCode between", value1, value2, "emailcode");
            return (Criteria) this;
        }

        public Criteria andEmailcodeNotBetween(String value1, String value2) {
            addCriterion("EmailCode not between", value1, value2, "emailcode");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("Status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("Status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Long value) {
            addCriterion("Status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Long value) {
            addCriterion("Status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Long value) {
            addCriterion("Status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Long value) {
            addCriterion("Status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Long value) {
            addCriterion("Status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Long value) {
            addCriterion("Status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Long> values) {
            addCriterion("Status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Long> values) {
            addCriterion("Status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Long value1, Long value2) {
            addCriterion("Status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Long value1, Long value2) {
            addCriterion("Status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andTypeIsNull() {
            addCriterion("Type is null");
            return (Criteria) this;
        }

        public Criteria andTypeIsNotNull() {
            addCriterion("Type is not null");
            return (Criteria) this;
        }

        public Criteria andTypeEqualTo(Long value) {
            addCriterion("Type =", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotEqualTo(Long value) {
            addCriterion("Type <>", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThan(Long value) {
            addCriterion("Type >", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeGreaterThanOrEqualTo(Long value) {
            addCriterion("Type >=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThan(Long value) {
            addCriterion("Type <", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeLessThanOrEqualTo(Long value) {
            addCriterion("Type <=", value, "type");
            return (Criteria) this;
        }

        public Criteria andTypeIn(List<Long> values) {
            addCriterion("Type in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotIn(List<Long> values) {
            addCriterion("Type not in", values, "type");
            return (Criteria) this;
        }

        public Criteria andTypeBetween(Long value1, Long value2) {
            addCriterion("Type between", value1, value2, "type");
            return (Criteria) this;
        }

        public Criteria andTypeNotBetween(Long value1, Long value2) {
            addCriterion("Type not between", value1, value2, "type");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}